package com.ruoyi.develop.lvRukumingxi.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出入库记录对象 lv_rukumingxi
 *
 * @author qh
 * @date 2024-10-12
 */
public class LvRukumingxi extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String goodsId;

    /**
     * 总价（订单总价）
     */
    @Excel(name = "总价", readConverterExp = "订=单总价")
    private BigDecimal goodsTotalPrice;

    /**
     * 成本单价
     */
    @Excel(name = "成本单价")
    private BigDecimal goodsBuyPrice;

    /**
     * 成本总金额（总成本价）
     */
    @Excel(name = "成本总金额", readConverterExp = "总=成本价")
    private BigDecimal goodsBuyTotal;

    /**
     * 销售利润
     */
    @Excel(name = "销售利润")
    private BigDecimal goodsProfit;

    /**
     * 销售日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String supplierId;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称")
    private String supplierName;

    /**
     * 客户
     */
    @Excel(name = "客户")
    private String customerId;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String customerName;

    /**
     * 销售人
     */
    @Excel(name = "销售人")
    private String saleId;

    /**
     * 销售人姓名
     */
    @Excel(name = "销售人姓名")
    private String saleName;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String projectId;

    /**
     * 订单名称
     */
    @Excel(name = "订单名称")
    private String projectName;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String status;

    /**
     * 产品编码
     */
    @Excel(name = "产品编码")
    private String code;

    /**
     * 吨位
     */
    @Excel(name = "吨位")
    private BigDecimal dun;

    /**
     * 单据号
     */
    @Excel(name = "单据号")
    private String nos;

    /**
     * 是否自制(1:自制; 2:请购; 3:外协)
     */
    @Excel(name = "是否自制(1:自制; 2:请购; 3:外协)")
    private String isdo;

    /**
     * 采购单id
     */
    @Excel(name = "采购单id")
    private String caigouId;

    /**
     * 请购单id
     */
    @Excel(name = "请购单id")
    private String qinggouId;

    /**
     * 采购单号
     */
    @Excel(name = "采购单号")
    private String caigouno;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 到货id
     */
    @Excel(name = "到货id")
    private String daohuoId;

    /**
     * 质检日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "质检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date zhijianDate;

    /**
     * 质检人
     */
    @Excel(name = "质检人")
    private String zhijianName;

    /**
     * 是否质检
     */
    @Excel(name = "是否质检")
    private String isZhijian;

    /**
     * 质检单
     */
    @Excel(name = "质检单")
    private String zhijiandan;

    /**
     * 到货单号
     */
    @Excel(name = "到货单号")
    private String daohuono;

    /**
     * 到货日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "到货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date daohuodate;

    /**
     * 出入库日期
     */
    @Excel(name = "出入库日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rukudate;

    /**
     * 出入库人
     */
    @Excel(name = "出入库人")
    private String rukuren;

    /**
     * 出入库编号
     */
    @Excel(name = "出入库编号")
    private String rukuno;

    /**
     * 出入库数量
     */
    @Excel(name = "出入库数量")
    private BigDecimal daohuoCount;

    /**
     * 出入库类型
     */
    @Excel(name = "出入库类型")
    private String type;

    private String goodsType;

    private String projectNo;

    private String parentId;
    private String goodsSaleId;
    private BigDecimal canCount;
    private String daohuodetailId;

    private BigDecimal useCount;

    private String materialId;
    private String rukudateStr;

    private String daohuoCountStr;
    private String goodsTotalPriceStr;
    private String goodsBuyPriceStr;

    private String doremark;
    private String douser;
    private String goodsName;
    private String goodsModel;
    private String bohui;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyyy-MM-dd HH:mm:ss")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date productdate;

    /** * 生产记录id */
    private String produceRecordId;
    /** * 生产记录编号 */
    private String produceRecordNos;
    /** * 生产记录明细id */
    private String produceRecordDetailId;

    private String factoryGoodssaleId;
    private String factoryProdNo;
    private String factoryProdId;

    private String lvBuycreateUsername;
    private String daohuoName;
    private String shourenName;
    private BigDecimal workMoney;
    private BigDecimal orderinDun;
    private String psaleId;
    private String psale_id;
    private String goodsCode;
    private String source;
    private List<LvRukumingxi> rukumingxiList;
    private String mingxiId;

    /** * 税率   */
    private BigDecimal taxRate;
    /** * 不含税单价   */
    private BigDecimal unitPriceNoTax;
    /** * 不含税总价   */
    private BigDecimal totalPriceNoTax;
    /** * 单重   */
    private BigDecimal singleWeight;

    public BigDecimal getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(BigDecimal taxRate) {
        this.taxRate = taxRate;
    }

    public BigDecimal getUnitPriceNoTax() {
        return unitPriceNoTax;
    }

    public void setUnitPriceNoTax(BigDecimal unitPriceNoTax) {
        this.unitPriceNoTax = unitPriceNoTax;
    }

    public BigDecimal getTotalPriceNoTax() {
        return totalPriceNoTax;
    }

    public void setTotalPriceNoTax(BigDecimal totalPriceNoTax) {
        this.totalPriceNoTax = totalPriceNoTax;
    }

    public BigDecimal getSingleWeight() {
        return singleWeight;
    }

    public void setSingleWeight(BigDecimal singleWeight) {
        this.singleWeight = singleWeight;
    }

    public String getMingxiId() {
        return mingxiId;
    }

    public void setMingxiId(String mingxiId) {
        this.mingxiId = mingxiId;
    }

    public List<LvRukumingxi> getRukumingxiList() {
        return rukumingxiList;
    }

    public void setRukumingxiList(List<LvRukumingxi> rukumingxiList) {
        this.rukumingxiList = rukumingxiList;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getPsale_id() {
        return psale_id;
    }

    public void setPsale_id(String psale_id) {
        this.psale_id = psale_id;
    }

    public String getPsaleId() {
        return psaleId;
    }

    public void setPsaleId(String psaleId) {
        this.psaleId = psaleId;
    }

    public BigDecimal getOrderinDun() {
        return orderinDun;
    }

    public void setOrderinDun(BigDecimal orderinDun) {
        this.orderinDun = orderinDun;
    }

    public BigDecimal getWorkMoney() {
        return workMoney;
    }

    public void setWorkMoney(BigDecimal workMoney) {
        this.workMoney = workMoney;
    }

    private BigDecimal beginMoney;

    public BigDecimal getBeginMoney() {
        return beginMoney;
    }

    public void setBeginMoney(BigDecimal beginMoney) {
        this.beginMoney = beginMoney;
    }

    public String getLvBuycreateUsername() {
        return lvBuycreateUsername;
    }

    public void setLvBuycreateUsername(String lvBuycreateUsername) {
        this.lvBuycreateUsername = lvBuycreateUsername;
    }

    public String getDaohuoName() {
        return daohuoName;
    }

    public void setDaohuoName(String daohuoName) {
        this.daohuoName = daohuoName;
    }

    public String getShourenName() {
        return shourenName;
    }

    public void setShourenName(String shourenName) {
        this.shourenName = shourenName;
    }

    public String getFactoryProdId() {
        return factoryProdId;
    }
    /** * 排序   */
    private int sort;

    /** * 开票状态   */
    private String invoiceStatus;
    /** * 开票金额   */
    private BigDecimal invoiceAmount;
    /** * 开票剩余   */
    private BigDecimal invoiceRemain;
    /** * 本次开票金额   */
    private BigDecimal invoiceTemp;

    /** * 退货数量   */
    private BigDecimal returnCount;
    /** * 退货重量   */
    private BigDecimal returnWeight;
    /** * 退货金额   */
    private BigDecimal returnMoney;

    /** * 退货数量   */
    private BigDecimal returnCountTemp;

    /** * 入库明细list   */
    List<LvRukumingxi> mingxiList;

    public BigDecimal getReturnCountTemp() {
        return returnCountTemp;
    }

    public void setReturnCountTemp(BigDecimal returnCountTemp) {
        this.returnCountTemp = returnCountTemp;
    }

    public List<LvRukumingxi> getMingxiList() {
        return mingxiList;
    }

    public void setMingxiList(List<LvRukumingxi> mingxiList) {
        this.mingxiList = mingxiList;
    }

    public BigDecimal getReturnCount() {
        return returnCount;
    }

    public void setReturnCount(BigDecimal returnCount) {
        this.returnCount = returnCount;
    }

    public BigDecimal getReturnWeight() {
        return returnWeight;
    }

    public void setReturnWeight(BigDecimal returnWeight) {
        this.returnWeight = returnWeight;
    }

    public BigDecimal getReturnMoney() {
        return returnMoney;
    }

    public void setReturnMoney(BigDecimal returnMoney) {
        this.returnMoney = returnMoney;
    }

    public BigDecimal getInvoiceTemp() {
        return invoiceTemp;
    }

    public void setInvoiceTemp(BigDecimal invoiceTemp) {
        this.invoiceTemp = invoiceTemp;
    }

    public String getInvoiceStatus() {
        return invoiceStatus;
    }

    public void setInvoiceStatus(String invoiceStatus) {
        this.invoiceStatus = invoiceStatus;
    }

    public BigDecimal getInvoiceAmount() {
        return invoiceAmount;
    }

    public void setInvoiceAmount(BigDecimal invoiceAmount) {
        this.invoiceAmount = invoiceAmount;
    }

    public BigDecimal getInvoiceRemain() {
        return invoiceRemain;
    }

    public void setInvoiceRemain(BigDecimal invoiceRemain) {
        this.invoiceRemain = invoiceRemain;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public void setFactoryProdId(String factoryProdId) {
        this.factoryProdId = factoryProdId;
    }

    public String getFactoryGoodssaleId() {
        return factoryGoodssaleId;
    }

    public void setFactoryGoodssaleId(String factoryGoodssaleId) {
        this.factoryGoodssaleId = factoryGoodssaleId;
    }

    public String getFactoryProdNo() {
        return factoryProdNo;
    }

    public void setFactoryProdNo(String factoryProdNo) {
        this.factoryProdNo = factoryProdNo;
    }

    public String getProduceRecordId() {
        return produceRecordId;
    }

    public void setProduceRecordId(String produceRecordId) {
        this.produceRecordId = produceRecordId;
    }

    public String getProduceRecordNos() {
        return produceRecordNos;
    }

    public void setProduceRecordNos(String produceRecordNos) {
        this.produceRecordNos = produceRecordNos;
    }

    public String getProduceRecordDetailId() {
        return produceRecordDetailId;
    }

    public void setProduceRecordDetailId(String produceRecordDetailId) {
        this.produceRecordDetailId = produceRecordDetailId;
    }

    public Date getProductdate() {
        return productdate;
    }

    public void setProductdate(Date productdate) {
        this.productdate = productdate;
    }

    public String getBohui() {
        return bohui;
    }

    public void setBohui(String bohui) {
        this.bohui = bohui;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsModel() {
        return goodsModel;
    }

    public void setGoodsModel(String goodsModel) {
        this.goodsModel = goodsModel;
    }

    public String getDoremark() {
        return doremark;
    }

    public void setDoremark(String doremark) {
        this.doremark = doremark;
    }

    public String getDouser() {
        return douser;
    }

    public void setDouser(String douser) {
        this.douser = douser;
    }

    public String getDaohuoCountStr() {
        return daohuoCountStr;
    }

    public void setDaohuoCountStr(String daohuoCountStr) {
        this.daohuoCountStr = daohuoCountStr;
    }

    public String getGoodsTotalPriceStr() {
        return goodsTotalPriceStr;
    }

    public void setGoodsTotalPriceStr(String goodsTotalPriceStr) {
        this.goodsTotalPriceStr = goodsTotalPriceStr;
    }

    public String getGoodsBuyPriceStr() {
        return goodsBuyPriceStr;
    }

    public void setGoodsBuyPriceStr(String goodsBuyPriceStr) {
        this.goodsBuyPriceStr = goodsBuyPriceStr;
    }

    public String getRukudateStr() {
        return rukudateStr;
    }

    public void setRukudateStr(String rukudateStr) {
        this.rukudateStr = rukudateStr;
    }

    /**
     * 样品申请id
     */
    private String sampleApplyId;

    private String idx;

    public String getIdx() {
        return idx;
    }

    public void setIdx(String idx) {
        this.idx = idx;
    }

    public String getSampleApplyId() {
        return sampleApplyId;
    }

    public void setSampleApplyId(String sampleApplyId) {
        this.sampleApplyId = sampleApplyId;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public BigDecimal getUseCount() {
        return useCount;
    }

    public void setUseCount(BigDecimal useCount) {
        this.useCount = useCount;
    }

    public BigDecimal getCanCount() {
        return canCount;
    }

    public String getGoodsSaleId() {
        return goodsSaleId;
    }

    public void setGoodsSaleId(String goodsSaleId) {
        this.goodsSaleId = goodsSaleId;
    }

    public String getDaohuodetailId() {
        return daohuodetailId;
    }

    public void setDaohuodetailId(String daohuodetailId) {
        this.daohuodetailId = daohuodetailId;
    }

    public void setCanCount(BigDecimal canCount) {
        this.canCount = canCount;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsTotalPrice(BigDecimal goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }

    public BigDecimal getGoodsTotalPrice() {
        return goodsTotalPrice;
    }

    public void setGoodsBuyPrice(BigDecimal goodsBuyPrice) {
        this.goodsBuyPrice = goodsBuyPrice;
    }

    public BigDecimal getGoodsBuyPrice() {
        return goodsBuyPrice;
    }

    public void setGoodsBuyTotal(BigDecimal goodsBuyTotal) {
        this.goodsBuyTotal = goodsBuyTotal;
    }

    public BigDecimal getGoodsBuyTotal() {
        return goodsBuyTotal;
    }

    public void setGoodsProfit(BigDecimal goodsProfit) {
        this.goodsProfit = goodsProfit;
    }

    public BigDecimal getGoodsProfit() {
        return goodsProfit;
    }

    public void setSaleDate(Date saleDate) {
        this.saleDate = saleDate;
    }

    public Date getSaleDate() {
        return saleDate;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId;
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleName(String saleName) {
        this.saleName = saleName;
    }

    public String getSaleName() {
        return saleName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setDun(BigDecimal dun) {
        this.dun = dun;
    }

    public BigDecimal getDun() {
        return dun;
    }

    public void setNos(String nos) {
        this.nos = nos;
    }

    public String getNos() {
        return nos;
    }

    public void setIsdo(String isdo) {
        this.isdo = isdo;
    }

    public String getIsdo() {
        return isdo;
    }

    public String getCaigouId() {
        return caigouId;
    }

    public void setCaigouId(String caigouId) {
        this.caigouId = caigouId;
    }

    public void setQinggouId(String qinggouId) {
        this.qinggouId = qinggouId;
    }

    public String getQinggouId() {
        return qinggouId;
    }

    public void setCaigouno(String caigouno) {
        this.caigouno = caigouno;
    }

    public String getCaigouno() {
        return caigouno;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setDaohuoId(String daohuoId) {
        this.daohuoId = daohuoId;
    }

    public String getDaohuoId() {
        return daohuoId;
    }

    public void setZhijianDate(Date zhijianDate) {
        this.zhijianDate = zhijianDate;
    }

    public Date getZhijianDate() {
        return zhijianDate;
    }

    public void setZhijianName(String zhijianName) {
        this.zhijianName = zhijianName;
    }

    public String getZhijianName() {
        return zhijianName;
    }

    public void setIsZhijian(String isZhijian) {
        this.isZhijian = isZhijian;
    }

    public String getIsZhijian() {
        return isZhijian;
    }

    public void setZhijiandan(String zhijiandan) {
        this.zhijiandan = zhijiandan;
    }

    public String getZhijiandan() {
        return zhijiandan;
    }

    public void setDaohuono(String daohuono) {
        this.daohuono = daohuono;
    }

    public String getDaohuono() {
        return daohuono;
    }

    public void setDaohuodate(Date daohuodate) {
        this.daohuodate = daohuodate;
    }

    public Date getDaohuodate() {
        return daohuodate;
    }

    public void setRukudate(Date rukudate) {
        this.rukudate = rukudate;
    }

    public Date getRukudate() {
        return rukudate;
    }

    public void setRukuren(String rukuren) {
        this.rukuren = rukuren;
    }

    public String getRukuren() {
        return rukuren;
    }

    public void setRukuno(String rukuno) {
        this.rukuno = rukuno;
    }

    public String getRukuno() {
        return rukuno;
    }

    public void setDaohuoCount(BigDecimal daohuoCount) {
        this.daohuoCount = daohuoCount;
    }

    public BigDecimal getDaohuoCount() {
        return daohuoCount;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodsId", getGoodsId())
                .append("goodsTotalPrice", getGoodsTotalPrice())
                .append("goodsBuyPrice", getGoodsBuyPrice())
                .append("goodsBuyTotal", getGoodsBuyTotal())
                .append("goodsProfit", getGoodsProfit())
                .append("saleDate", getSaleDate())
                .append("supplierId", getSupplierId())
                .append("supplierName", getSupplierName())
                .append("customerId", getCustomerId())
                .append("customerName", getCustomerName())
                .append("saleId", getSaleId())
                .append("saleName", getSaleName())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("projectId", getProjectId())
                .append("projectName", getProjectName())
                .append("status", getStatus())
                .append("code", getCode())
                .append("dun", getDun())
                .append("nos", getNos())
                .append("isdo", getIsdo())
                .append("qinggouId", getQinggouId())
                .append("caigouno", getCaigouno())
                .append("unit", getUnit())
                .append("daohuoId", getDaohuoId())
                .append("zhijianDate", getZhijianDate())
                .append("zhijianName", getZhijianName())
                .append("isZhijian", getIsZhijian())
                .append("zhijiandan", getZhijiandan())
                .append("daohuono", getDaohuono())
                .append("daohuodate", getDaohuodate())
                .append("rukudate", getRukudate())
                .append("rukuren", getRukuren())
                .append("rukuno", getRukuno())
                .append("daohuoCount", getDaohuoCount())
                .append("type", getType())
                .toString();
    }
}
